@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

:root{
  --red:#e50914;
  --dark:#000;
  --white:#fff;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:'Tajawal',sans-serif;
  background:#000;
  color:#fff;
}

/* ================= Layout ================= */
.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

.product-details{
  padding:120px 0;
  background:linear-gradient(180deg,#000,#0b0b0b);
}

/* ================= Intro ================= */
.product-intro{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
  margin-bottom:120px;
}

/* ================= Media ================= */
.product-media{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(229,9,20,.25);
  padding:25px;
  border-radius:26px;
  box-shadow:0 0 40px rgba(229,9,20,.2);
}

/* تثبيت حجم السليدر */
.product-slider{
  position:relative;
  width:100%;
  height:420px; /* ← غير الرقم حسب ما تحب */
  overflow:hidden;
  border-radius:22px;
}

/* تثبيت حجم الصورة */
.product-slider img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:22px;
  transition:.3s ease;
}

@media(max-width:768px){
  .product-slider{
    height:300px;
  }
}


/* ===== Zoom Lens ===== */
.zoom-lens{
  position:absolute;
  width:160px;
  height:160px;
  background:rgba(255,255,255,.18);
  border:2px solid var(--red);
  border-radius:12px;
  pointer-events:none;
  display:none;
  backdrop-filter:blur(5px);
  box-shadow:0 15px 35px rgba(0,0,0,.5);
}

/* ===== Zoom Hint ===== */
.zoom-hint{
  position:absolute;
  bottom:15px;
  left:15px;
  background:rgba(0,0,0,.7);
  padding:6px 14px;
  border-radius:30px;
  font-size:13px;
  display:flex;
  gap:6px;
  align-items:center;
  opacity:0;
  transition:.3s;
}

.product-slider:hover .zoom-hint{
  opacity:1;
}

/* ================= Buttons ================= */
.slide-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:45px;
  height:45px;
  border-radius:50%;
  background:rgba(0,0,0,.6);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  cursor:pointer;
  transition:.3s;
}
.slide-btn:hover{background:var(--red)}
.prev{right:15px}
.next{left:15px}

/* ================= Thumbs ================= */
.product-thumbs{
  display:flex;
  gap:15px;
  margin-top:20px;
}

.product-thumbs img{
  width:95px;
  height:65px;
  object-fit:cover;
  border-radius:12px;
  opacity:1;
  cursor:pointer;
  transition:.3s;
  border:2px solid transparent;
}
.product-thumbs img:not(.active){
  filter:brightness(.85);
}


.product-thumbs img.active{
  opacity:1;
  border-color:var(--red);
  box-shadow:0 0 15px rgba(229,9,20,.7);
}

/* ================= Info ================= */
.product-info span{
  display:inline-block;
  padding:8px 20px;
  border-radius:30px;
  background:rgba(229,9,20,.15);
  color:var(--red);
  margin-bottom:20px;
  font-size:.85rem;
}

.product-info h1{
  font-size:3rem;
  margin-bottom:20px;
}

.product-info p{
  color:#ccc;
  line-height:1.9;
  margin-bottom:15px;
}

/* ================= Features ================= */
.features{
  display:flex;
  flex-direction:column;
  gap:90px;
}

.feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.feature.reverse{direction:ltr}

.feature img{
  width:100%;
  border-radius:22px;
  box-shadow:0 0 35px rgba(0,0,0,.6);
}

.feature-content{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  padding:40px;
  border-radius:22px;
  transition:.3s;
}

.feature:hover .feature-content{
  border-color:var(--red);
  box-shadow:0 0 30px rgba(229,9,20,.25);
}

.feature-content h3{
  font-size:1.7rem;
  margin-bottom:15px;
}

.feature-content h3::after{
  content:"";
  width:50px;
  height:3px;
  background:var(--red);
  display:block;
  margin-top:10px;
}

.feature-content p{
  color:#bbb;
  line-height:1.8;
}

/* ================= Responsive ================= */
@media(max-width:992px){
  .product-intro,.feature{grid-template-columns:1fr}
  .feature.reverse{direction:rtl}
  .product-info h1{font-size:2.2rem}
}
.product-slider {
  width: 100%;
  height: 420px;
  overflow: hidden;
}

#mainSlide {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← ده السطر اللي بيحل كل حاجة */
  transition: transform .3s ease, opacity .3s ease;
}


/* ================= TABLE MODERN ================= */
.spec-title{
  text-align:center;
  margin:100px 0 40px;
  font-size:2.4rem;
}

.spec-table-wrapper{
  background:linear-gradient(180deg,#0b0b0b,#000);
  padding:30px;
  border-radius:24px;
  box-shadow:0 0 40px rgba(229,9,20,.18);
  overflow-x:auto;
}

table{
  width:100%;
  min-width:750px;
  border-collapse:separate;
  border-spacing:0;
  font-size:.95rem;
}

thead th{
  background:rgba(229,9,20,.15);
  color:var(--red);
  padding:16px;
  text-transform:uppercase;
  border-bottom:1px solid rgba(229,9,20,.4);
}

thead th:first-child{border-top-right-radius:14px}
thead th:last-child{border-top-left-radius:14px}

tbody tr{
  background:rgba(255,255,255,.03);
  transition:.3s;
}

tbody tr:hover{
  background:rgba(229,9,20,.08);
  transform:scale(1.01);
}

tbody td{
  padding:15px;
  text-align:center;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#ddd;
}

tbody tr:last-child td{border-bottom:none}

.badge{
  padding:6px 16px;
  border-radius:30px;
  font-size:.8rem;
  font-weight:600;
  display:inline-block;
}

.badge.tpu{background:rgba(229,9,20,.15);color:var(--red)}
.badge.tph{background:rgba(255,255,255,.15);color:#fff}
.badge.instant{background:rgba(0,200,120,.18);color:#00ff99}
.badge.heat{background:rgba(255,165,0,.18);color:#ffb347}

.super-elastic{
  display:block;
  font-size:.75rem;
  color:#ff4d4d;
  margin-top:4px;
}

@media(max-width:768px){
  table{font-size:.85rem}
}

/* ===== TPU SPECS SECTION ===== */
.ppf-specs{
  padding:120px 0;
  background:radial-gradient(circle at top,#111,#000 70%);
}

.specs-title{
  font-size:2.6rem;
  margin-bottom:50px;
  text-align:left;
  color:#fff;
}

/* ===== Specs Grid ===== */
.specs-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  margin-bottom:80px;
}

.specs-grid ul{
  list-style:none;
  padding:35px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:0 0 35px rgba(0,0,0,.6);
}

.specs-grid li{
  margin-bottom:14px;
  line-height:1.8;
  color:#ddd;
}

.specs-grid strong{
  color:#e50914;
  font-weight:600;
}

/* ===== Technical Table ===== */
.spec-table-wrapper{
  background:rgba(255,255,255,.03);
  padding:30px;
  border-radius:22px;
  box-shadow:0 0 40px rgba(229,9,20,.15);
  overflow-x:auto;
}

table{
  width:100%;
  min-width:800px;
  border-collapse:separate;
  border-spacing:0;
}

thead th{
  background:rgba(229,9,20,.15);
  color:#e50914;
  padding:16px;
  text-align:center;
  border-bottom:1px solid rgba(229,9,20,.4);
}

tbody tr{
  background:rgba(255,255,255,.03);
  transition:.3s;
}

tbody tr:hover{
  background:rgba(229,9,20,.08);
}

tbody td{
  padding:15px;
  text-align:center;
  color:#ddd;
  border-bottom:1px solid rgba(255,255,255,.08);
}

tbody tr:last-child td{
  border-bottom:none;
}

/* ===== Responsive ===== */
@media(max-width:992px){
  .specs-grid{
    grid-template-columns:1fr;
  }
}

/* ===== Full Width Image ===== */
.full-width-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* الصورة */
.full-width-image img {
  width: 100%;
  height: 85vh;
  object-fit: cover;
  display: block;
}

/* ===== Mobile Fix ===== */
@media (max-width: 768px) {
  .full-width-image img {
    height: 55vh;      /* ارتفاع مريح للموبايل */
    min-height: 320px; /* يمنع الضغط الزائد */
  }
}

/* ===== Small Phones ===== */
@media (max-width: 480px) {
  .full-width-image img {
    height: 45vh;
    min-height: 260px;
  }
}





@media (max-width: 992px) {
  .product-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-media {
    order: 1;
  }

  .product-info {
    order: 2;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .product-details {
    padding: 80px 0;
  }

  .product-info h1 {
    font-size: 1.8rem;
  }

  .product-info p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .product-thumbs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .product-thumbs img {
    width: 75px;
    height: 55px;
  }
}

.product-slider {
  width: 100%;
  height: 420px;
}

@media (max-width: 768px) {
  .product-slider {
    height: 280px;
  }
}
